*{
    font-family:FONT_NAME;
}

/*
 --------------------------------------------------------------------------
 Base widgets
 --------------------------------------------------------------------------
*/
QLabel
{
    background: transparent;
}


QWidget
{
    color: rgb(255, 255, 255, 200);
    background-color: BACKGROUND_COLOR;
}

QWidget:disabled
{
    color: rgb(255, 255, 255, 100);
}

QLineEdit, QPushButton, QToolBar, QToolButton, QTabBar, QTextEdit, QTabBar::tab
{
    border: 0px;
    border-radius: 0px;
}

QToolButton
{
    background: transparent;
}

QPushButton
{
    color: #FFFFFF;
    background-color: rgb(255, 255, 255, 30);
}


QPushButton::hover
{
    background-color: ACCENT_COLOR;
}

QDialog QPushButton:focus
{
    color: rgb(255, 255, 255, 255);
    background-color: ACCENT_COLOR;
}

/*
DIALOG
*/
QMessageBox QPushButton, QDialog QPushButton, QWidget QPushButton {
    width: 100px;
    height: 32px;
}

/*
 --------------------------------------------------------------------------
 Scroll Bar
 --------------------------------------------------------------------------
*/

QScrollBar:vertical {
	width: 6*DPIpx;
}

QScrollBar:horizontal {
	height: 6*DPIpx;
}

QScrollBar:vertical,
QScrollBar:horizontal{
	margin: 0px;
	border: 0px solid grey;
	background: rgb(255, 255, 255, 0);
}

QScrollBar::handle:vertical,
QScrollBar::handle:horizontal{
	min-height: 0px;
	background: rgb(255,255, 255, 50);
}

QScrollBar::handle:vertical:hover,
QScrollBar::handle:horizontal:hover {
	background: rgb(255,255, 255, 100);
}

QScrollBar::add-line:vertical,
QScrollBar::add-line:horizontal {
	height: 0px;
	border: 0px solid grey;
	subcontrol-origin: margin;
	subcontrol-position: bottom;
	background: rgb(80, 80, 80);
}

QScrollBar::sub-line:vertical,
QScrollBar::sub-line:horizontal {
	height: 0px;
	border: 0px solid grey;
	subcontrol-position: top;
	subcontrol-origin: margin;
	background: rgb(80, 80, 80);
}

QScrollBar::up-arrow:vertical, QScrollBar::down-arrow:vertical {
	width: 0px;
	height: 0px;
	border: 0px;
	background: white;
}

QScrollBar::add-page:horizontal, QScrollBar::add-page:vertical,
QScrollBar::add-page:horizontal, QScrollBar::sub-page:vertical {
	background: none;
}

/*
 --------------------------------------------------------------------------
 Header View
 --------------------------------------------------------------------------
*/

/* style the sort indicator */

QAbstractItemView::separator{
	height: 0px;
	padding: 0px 0px 0px 0px;
	background-color: rgb(255, 255, 255, 0);
}

QListView::item, QTreeView::item {
	border: 0px;
	outline: none;
	border-style: solid;
	margin: 0px 0px 0px 0px;
	padding: 0px 0px 0px 0px;
	background-color: rgb(220, 220, 220, 40);
}

QHeaderView::section {
	font: 16*DPIpx;
	height: 24*DPIpx;
	border: 0px;
	border-right: 2*DPIpx solid rgb(220, 220, 220, 20);
	padding: 5*DPIpx;
	background-color: BACKGROUND_COLOR;
}


/*
 --------------------------------------------------------------------------
 List/Tree View
 --------------------------------------------------------------------------
*/

QTreeView, QListView{
	font: 13*DPIpx;
	color: rgb(255, 255, 255, 220);
}

QTreeWidget {
	font: 12*DPIpx;
}

QTreeView, QListView{
    border: 0px;
    outline: none;
}

QTreeView::item, QTreeView::branch {
	height: 24*DPIpx;
	show-decoration-selected: 1; /* make the selection span the entire width of the view */
	background-color: BACKGROUND_COLOR;
}

QTreeView::item:focus{
	border: 0px;
	outline: none;
}

QTreeView::branch:has-children:!has-siblings:closed,
QTreeView::branch:closed:has-children:has-siblings {
    border-image: none;
    image: url(IMG_DIR/branch_closed.png);
}

QTreeView::branch:open:has-children:!has-siblings,
QTreeView::branch:open:has-children:has-siblings  {
    border-image: none;
    image: url(IMG_DIR/branch_open.png);
}

QMenu::separator, QListView::item:hover,
QTreeView::branch:hover, QTreeView::item:hover
{
    color: rgb(255, 255, 255, 255);
	background-color: rgb(0, 225, 225, 255);
}

QTreeView::branch:selected,
QMenu::item:selected {
    color: rgb(255, 255, 255, 255);
    background-color: ACCENT_COLOR;
}

QTreeView::item:selected, QTreeView::item:selected:active,
QListView::item:selected, QListView::item:selected:active {
    color: rgb(255, 255, 255, 255);
    background-color: ACCENT_COLOR;
}

QCheckBox::indicator, QRadioButton::indicator  {
	width: 18px;
	height: 18px;
}

QRadioButton::indicator:checked {
    image: url(IMG_DIR/radio_button_checked.png)
}

QRadioButton::indicator:unchecked {
    image: url(IMG_DIR/radio_button_unchecked.png)
}

QCheckBox::checked
{
    color: rgb(255, 255, 255, 200);
}

QCheckBox::unchecked
{
    color: rgb(255, 255, 255, 50);
}


QCheckBox::indicator:checked, QMenu::indicator:non-exclusive:checked
{
    image: url(IMG_DIR/check_box_checked.png);
}

QCheckBox::indicator:unchecked, QMenu::indicator:non-exclusive:unchecked
{
    image: url(IMG_DIR/check_box_unchecked.png)
}

QCheckBox::indicator:disabled, QMenu::indicator:non-exclusive:disabled
{
    image: url(IMG_DIR/check_box_unchecked.png)
}

/*
 --------------------------------------------------------------------------
 ComboBox
 --------------------------------------------------------------------------
*/

QComboBox {
	width: 10px;
    border: 0px;
	padding-left: 2px;
    border-radius: 0px;
	background-color: rgb(255, 255, 255, 15);
}

QComboBox::drop-down {
    width: 1px;
	background-color: rgb(255, 255, 255, 0);
}

QComboBox::down-arrow {
    width: 1px;
	image: url(IMG_DIR/null.png);
    background-color: rgb(255, 255, 255, 0);
}

QComboBox, QLineEdit, QTextEdit, QComboBox QAbstractItemView:item {
	height: 25px;
	padding: 0 4px;
	/*font-size: 11pt;*/
	border-radius: 0px;
	background-color: rgb(255, 255, 255, 15);
	border-bottom: 0px solid rgb(255, 255, 255, 50);
	selection-color: rgb(255, 255, 255, 230);
	selection-background-color: ACCENT_COLOR;
}

ComboBox:focus, QLineEdit:focus, QLineEdit:focus{
	border: 0px;
	border-bottom: 2px solid ACCENT_COLOR;
	background-color: rgb(255, 255, 255, 30);
}

QLineEdit:disabled
{
    background-color: rgb(255, 255, 255, 5);
}


QComboBox QAbstractItemView {
	selection-background-color: ACCENT_COLOR;
	selection-color: rgb(255, 255, 255, 210);
}


/*
 --------------------------------------------------------------------------
 Menu Item
 --------------------------------------------------------------------------
*/

QMenu, QMenu QWidget {
	font: 12*DPIpx;
	color: rgb(255, 255, 255, 180);
	background-color: BACKGROUND_COLOR;
}

QMenu::item:selected {
    background-color: ACCENT_COLOR;
}

QMenu::item {
	border: 1px solid rgb(0, 0, 0, 0);
	padding: 2px 25px 2px 22px;
}

QMenu::separator {
	height: 1px;
	padding: 0px 1px 0px 1px;
}

QMenu::indicator:non-exclusive {
	width: 14px;
	height: 14px;
	padding-left: 2px;
}

/*
 --------------------------------------------------------------------------
 QSplitter
 --------------------------------------------------------------------------
*/


QSplitter {
	background-color: BACKGROUND_COLOR;
}

QSplitter:handle
{
    max-width: 5px;
	background-color: rgb(255, 255, 255, 10);
}

QSplitter::handle:hover {
    background-color: ACCENT_COLOR;
}

/*
 --------------------------------------------------------------------------
QProgressBar
 --------------------------------------------------------------------------
*/

QProgressBar {
    border: 1px solid rgb(255, 255, 255, 10);
    border-radius: 0px;
}

QProgressBar::chunk {
    background-color: #ff8c00;
    width: 10px;
    margin: 0.5px;
}

/*
 --------------------------------------------------------------------------
 Other
 --------------------------------------------------------------------------
*/
ToolBar
{
    background-color: rgb(255, 255, 255, 20);
}

QSizeGrip
{

    width: 10px;
    height: 10px;
    border: none;
    background-color: transparent;
    image: url(IMG_DIR/resize_bottom_right.png);
}